package fm.dongman.modellib.model;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

import fm.dongman.animefm.contractlib.IModel;

/**
 * 动漫模型 独家推荐
 * Created by Admin on 2017/9/28.
 */

public class ComicModel implements IModel.IComicModel {

    //图片地址
    private String mImgUrl;

    //标题
    private String mTitle;

    //动漫id
    private String mId;

    //评分
    private String mRateScore;

    //人设评分
    private String mCharacterScore;

    //音乐评分
    private String mMusicScore;

    //画风评分
    private String mPictureScore;

    //剧情评分
    private String mStoryScore;

    //创建时间或者年份
    private String mYear;

    //更新的集数
    private String mEpisodes;

    //动漫种类
    private String mGenre;

    //导演
    private String mDirector;

    //国家
    private String mCountry;

    //观看数
    private String mBrowseCount;

    //收藏数
    private String CollectCount;

    //别名
    private String mAka;

    //推荐介绍
    private String mRecomeIntro;

    //介绍
    private String mSummary;

    //是否完结
    private String mIsEnd;

    //剧照
    private List<ComicPictureModel> mImgList;

    //篇幅
    private String mSubType;

    //演员
    private String mCasts;

    //播放列表
    private List<ComicPlayModel> mPlaylist;

    //更新时间
    private String mInsertTime;

    // 观看时间
    private String mWatchTime;

    public String getGenre() {
        return mGenre;
    }

    public void setGenre(String genre) {
        mGenre = genre;
    }


    public ComicModel() {
    }

    public ComicModel(String mImgUrl, String mTitle, String mSubjectId, String mRateScore, String mCreateTime, String mNum) {
        this.mImgUrl = mImgUrl;
        this.mTitle = mTitle;
        this.mId = mSubjectId;
        this.mRateScore = mRateScore;
        this.mYear = mCreateTime;
        this.mEpisodes = mNum;
    }

    public List<ComicPictureModel> getImgList() {
        return mImgList;
    }

    public String getCasts() {
        return mCasts;
    }

    public void setCasts(String casts) {
        mCasts = casts;
    }

    public void setImgList(List<ComicPictureModel> imgList) {
        mImgList = imgList;
    }

    public String getImgUrl() {
        return mImgUrl;
    }

    public void setImgUrl(String imgUrl) {
        mImgUrl = imgUrl;
    }

    public String getTitle() {
        return mTitle;
    }

    public void setTitle(String title) {
        mTitle = title;
    }

    public String getId() {
        return mId;
    }

    public void setId(String id) {
        mId = id;
    }

    public String getInsertTime() {
        return mInsertTime;
    }

    public void setInsertTime(String insertTime) {
        mInsertTime = insertTime;
    }

    public List<ComicPlayModel> getPlaylist() {
        return mPlaylist;
    }

    public void setPlaylist(List<ComicPlayModel> playlist) {
        mPlaylist = playlist;
    }

    public String getRateScore() {
        return mRateScore;
    }

    public String getCharacterScore() {
        return mCharacterScore;
    }

    public void setCharacterScore(String characterScore) {
        mCharacterScore = characterScore;
    }

    public String getMusicScore() {
        return mMusicScore;
    }

    public void setMusicScore(String musicScore) {
        mMusicScore = musicScore;
    }

    public String getSummary() {
        return mSummary;
    }

    public void setSummary(String summary) {
        mSummary = summary;
    }

    public String getPictureScore() {
        return mPictureScore;
    }

    public void setPictureScore(String pictureScore) {
        mPictureScore = pictureScore;
    }

    public String getStoryScore() {
        return mStoryScore;
    }

    public void setStoryScore(String storyScore) {
        mStoryScore = storyScore;
    }

    public void setRateScore(String rateScore) {
        mRateScore = rateScore;
    }

    public String getYear() {
        return mYear;
    }

    public String getEpisodes() {
        return mEpisodes;
    }

    public void setEpisodes(String episodes) {
        mEpisodes = episodes;
    }

    public void setYear(String year) {
        mYear = year;
    }

    public String getCountry() {
        return mCountry;
    }

    public void setCountry(String country) {
        mCountry = country;
    }

    public String getBrowseCount() {
        return mBrowseCount;
    }

    public void setBrowseCount(String browseCount) {
        mBrowseCount = browseCount;
    }

    public String getCollectCount() {
        return CollectCount;
    }

    public void setCollectCount(String collectCount) {
        CollectCount = collectCount;
    }

    public String getAka() {
        return mAka;
    }

    public void setAka(String aka) {
        mAka = aka;
    }

    public String getRecomeIntro() {
        return mRecomeIntro;
    }

    public void setRecomeIntro(String recomeIntro) {
        mRecomeIntro = recomeIntro;
    }

    public String getDirector() {
        return mDirector;
    }

    public void setDirector(String director) {
        mDirector = director;
    }

    public String getWatchTime() {
        return mWatchTime;
    }

    public void setWatchTime(String watchTime) {
        mWatchTime = watchTime;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(mImgUrl);
        dest.writeString(mTitle);
        dest.writeString(mId);
        dest.writeString(mRateScore);
        dest.writeString(mDirector);
    }

    public static Parcelable.Creator<ComicModel> CREATOR = new Creator<ComicModel>() {
        @Override
        public ComicModel createFromParcel(Parcel source) {
            ComicModel model = new ComicModel();
            model.setImgUrl(source.readString());
            model.setTitle(source.readString());
            model.setId(source.readString());
            model.setRateScore(source.readString());
            model.setDirector(source.readString());
            return model;
        }

        @Override
        public ComicModel[] newArray(int size) {
            return new ComicModel[size];
        }
    };

    public String getIsEnd() {
        return mIsEnd;
    }

    public void setIsEnd(String mIsEnd) {
        this.mIsEnd = mIsEnd;
    }

    public String getSubType() {
        return mSubType;
    }

    public void setSubType(String mSubType) {
        this.mSubType = mSubType;
    }
}
